import request from "@/utils/request"

// 获取地产列表数据
export function getPropertyList(params) {
    return request({
        url: '/properties',
        params
    })
}
export function getPropertyCount(params) {
    return request({
        url: '/properties/count',
        params
    })
}

export function getPropertyById(id) {
    return request({
        url: `/properties/${id}`
    })
}

// 获取地产数据
export function getCategoryList(params) {
    return request({
        url: '/categories',
        params
    })
}
export function getCategoryCount(params) {
    return request({
        url: '/categories/count',
        params
    })
}
export function getCategoryById(id) {
    return request({
        url: `/categories/${id}`
    })
}